﻿using ProductionManage.Models.DataModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;
using wangyaxin.Wyx.Dto;

namespace wangyaxin.Wyx
{
    public interface IVendorAppService: IApplicationService
    {
        /// <summary>
        /// 获取供应商列表
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<string> SelectVendor(string? VendorCode, string? VendorName, string? VendorEnName);

        /// <summary>
        /// 添加供应商--王亚鑫
        /// </summary>
        /// <param name="input">产品数据传输对象</param>
        /// <returns></returns>
        Task AddVendor(CreateVendorDto input);

        /// <summary>
        /// 删除供应商--王亚鑫
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task DeleteVendor(int id);

        /// <summary>
        /// 反填供应商--王亚鑫
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<Vendor> SelectById(int id);

        /// <summary>
        /// 修改供应商--王亚鑫
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        Task<string> UpdateVendor(UpdateVendorDto input);
    }
}
